<?php

$smarty = DRX::load("smarty");

//ERROR MESSAGE
$error_msg = new ErrorMessages();
$smarty->assign('error_msg', $error_msg);
//END ERROR MESSAGE

Parameter::loadConstants();

//if user logged in, get user data
if( isset($_SESSION['user_serialize']) )
{
	$g_user = unserialize($_SESSION['user_serialize']);
	$smarty->assign('g_user', $g_user);
}